package com.ax.associator.store.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

public class PrescriptionMast {
    /**
     * 处方ID
     */
    private Long prescriptionId;

    /**
     * 处方单号
     */
    private String prescriptionSeq;

    /**
     * 会员ID
     */
    private Long associatorId;

    /**
     * 会员姓名
     */
    private String associatorName;

    /**
     * 身份证号
     */
    private String personId;

    /**
     * 年龄
     */
    private Integer age;

    /**
     * 性别
     */
    private String sex;

    /**
     * 科别代码
     */
    private String subjectCode;

    /**
     * 科目名称
     */
    private String subjectName;

    /**
     * 联系电话
     */
    private String patientPhone;

    /**
     * 地址
     */
    private String address;

    /**
     * 过敏史
     */
    private String anaphylaxis;

    /**
     * 诊断
     */
    private String diagnosis;

    /**
     * 医师ID
     */
    private Long doctorId;

    /**
     * 医师姓名
     */
    private String doctorName;

    /**
     * 医师电话
     */
    private String doctorPhone;

    /**
     * 处方时间
     */
    private Date prescriptionTime;

    /**
     * 药师审核结果(0：未通过；1：通过）
     */
    private Integer pharmacistAuditResult;

    /**
     * 药师ID
     */
    private Long pharmacistId;

    /**
     * 药师姓名
     */
    private String pharmacistName;

    /**
     * 药师电话
     */
    private String pharmacistPhone;

    /**
     * 药店ID
     */
    private Long drugstoreId;

    /**
     * 药店名称
     */
    private String drugstoreName;

    /**
     * 备注
     */
    private String remarks;

    /**
     * 评分
     */
    private Float score;

    /**
     * 是否购药
     */
    private Integer isBuy;

    /**
     * 创建时间
     */
    private Date createDate;

    /**
     * 修改时间
     */
    private Date updateDate;

    /**
     * 状态(1：有效；0：注销)
     */
    private Integer flag;
    //联表查询需要字段(会员和明细)
    private String phone;
    private String birth;
    private Long registrarId;
    private String registrarName;
    private Long prescriptionDetailId;
    private String drugName;
    private String spec;
    private float number;
    private Integer isHemp;
    private String takeMethod;
    private String detailRemarks;
    
    public Long getPrescriptionDetailId() {
		return prescriptionDetailId;
	}

	public void setPrescriptionDetailId(Long prescriptionDetailId) {
		this.prescriptionDetailId = prescriptionDetailId;
	}

	public String getDrugName() {
		return drugName;
	}

	public void setDrugName(String drugName) {
		this.drugName = drugName;
	}

	public String getSpec() {
		return spec;
	}

	public void setSpec(String spec) {
		this.spec = spec;
	}

	public float getNumber() {
		return number;
	}

	public void setNumber(float number) {
		this.number = number;
	}

	public Integer getIsHemp() {
		return isHemp;
	}

	public void setIsHemp(Integer isHemp) {
		this.isHemp = isHemp;
	}

	public String getTakeMethod() {
		return takeMethod;
	}

	public void setTakeMethod(String takeMethod) {
		this.takeMethod = takeMethod;
	}

	public String getDetailRemarks() {
		return detailRemarks;
	}

	public void setDetailRemarks(String detailRemarks) {
		this.detailRemarks = detailRemarks;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public String getBirth() {
		return birth;
	}

	public void setBirth(String birth) {
		this.birth = birth;
	}

	public Long getRegistrarId() {
		return registrarId;
	}

	public void setRegistrarId(Long registrarId) {
		this.registrarId = registrarId;
	}

	public String getRegistrarName() {
		return registrarName;
	}

	public void setRegistrarName(String registrarName) {
		this.registrarName = registrarName;
	}

	public PrescriptionMast(Long prescriptionId, String prescriptionSeq, Long associatorId, String associatorName, String personId, Integer age, String sex, String subjectCode, String subjectName, String patientPhone, String address, String anaphylaxis, String diagnosis, Long doctorId, String doctorName, String doctorPhone, Date prescriptionTime, Integer pharmacistAuditResult, Long pharmacistId, String pharmacistName, String pharmacistPhone, Long drugstoreId, String drugstoreName, String remarks, Float score, Integer isBuy, Date createDate, Date updateDate, Integer flag) {
        this.prescriptionId = prescriptionId;
        this.prescriptionSeq = prescriptionSeq;
        this.associatorId = associatorId;
        this.associatorName = associatorName;
        this.personId = personId;
        this.age = age;
        this.sex = sex;
        this.subjectCode = subjectCode;
        this.subjectName = subjectName;
        this.patientPhone = patientPhone;
        this.address = address;
        this.anaphylaxis = anaphylaxis;
        this.diagnosis = diagnosis;
        this.doctorId = doctorId;
        this.doctorName = doctorName;
        this.doctorPhone = doctorPhone;
        this.prescriptionTime = prescriptionTime;
        this.pharmacistAuditResult = pharmacistAuditResult;
        this.pharmacistId = pharmacistId;
        this.pharmacistName = pharmacistName;
        this.pharmacistPhone = pharmacistPhone;
        this.drugstoreId = drugstoreId;
        this.drugstoreName = drugstoreName;
        this.remarks = remarks;
        this.score = score;
        this.isBuy = isBuy;
        this.createDate = createDate;
        this.updateDate = updateDate;
        this.flag = flag;
    }

    public PrescriptionMast() {
        super();
    }

    public Long getPrescriptionId() {
        return prescriptionId;
    }

    public void setPrescriptionId(Long prescriptionId) {
        this.prescriptionId = prescriptionId;
    }

    public String getPrescriptionSeq() {
        return prescriptionSeq;
    }

    public void setPrescriptionSeq(String prescriptionSeq) {
        this.prescriptionSeq = prescriptionSeq == null ? null : prescriptionSeq.trim();
    }

    public Long getAssociatorId() {
        return associatorId;
    }

    public void setAssociatorId(Long associatorId) {
        this.associatorId = associatorId;
    }

    public String getAssociatorName() {
        return associatorName;
    }

    public void setAssociatorName(String associatorName) {
        this.associatorName = associatorName == null ? null : associatorName.trim();
    }

    public String getPersonId() {
        return personId;
    }

    public void setPersonId(String personId) {
        this.personId = personId == null ? null : personId.trim();
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex == null ? null : sex.trim();
    }

    public String getSubjectCode() {
        return subjectCode;
    }

    public void setSubjectCode(String subjectCode) {
        this.subjectCode = subjectCode == null ? null : subjectCode.trim();
    }

    public String getSubjectName() {
        return subjectName;
    }

    public void setSubjectName(String subjectName) {
        this.subjectName = subjectName == null ? null : subjectName.trim();
    }

    public String getPatientPhone() {
        return patientPhone;
    }

    public void setPatientPhone(String patientPhone) {
        this.patientPhone = patientPhone == null ? null : patientPhone.trim();
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address == null ? null : address.trim();
    }

    public String getAnaphylaxis() {
        return anaphylaxis;
    }

    public void setAnaphylaxis(String anaphylaxis) {
        this.anaphylaxis = anaphylaxis == null ? null : anaphylaxis.trim();
    }

    public String getDiagnosis() {
        return diagnosis;
    }

    public void setDiagnosis(String diagnosis) {
        this.diagnosis = diagnosis == null ? null : diagnosis.trim();
    }

    public Long getDoctorId() {
        return doctorId;
    }

    public void setDoctorId(Long doctorId) {
        this.doctorId = doctorId;
    }

    public String getDoctorName() {
        return doctorName;
    }

    public void setDoctorName(String doctorName) {
        this.doctorName = doctorName == null ? null : doctorName.trim();
    }

    public String getDoctorPhone() {
        return doctorPhone;
    }

    public void setDoctorPhone(String doctorPhone) {
        this.doctorPhone = doctorPhone == null ? null : doctorPhone.trim();
    }

    public Date getPrescriptionTime() {
        return prescriptionTime;
    }

    public void setPrescriptionTime(Date prescriptionTime) {
        this.prescriptionTime = prescriptionTime;
    }

    public Integer getPharmacistAuditResult() {
        return pharmacistAuditResult;
    }

    public void setPharmacistAuditResult(Integer pharmacistAuditResult) {
        this.pharmacistAuditResult = pharmacistAuditResult;
    }

    public Long getPharmacistId() {
        return pharmacistId;
    }

    public void setPharmacistId(Long pharmacistId) {
        this.pharmacistId = pharmacistId;
    }

    public String getPharmacistName() {
        return pharmacistName;
    }

    public void setPharmacistName(String pharmacistName) {
        this.pharmacistName = pharmacistName == null ? null : pharmacistName.trim();
    }

    public String getPharmacistPhone() {
        return pharmacistPhone;
    }

    public void setPharmacistPhone(String pharmacistPhone) {
        this.pharmacistPhone = pharmacistPhone == null ? null : pharmacistPhone.trim();
    }

    public Long getDrugstoreId() {
        return drugstoreId;
    }

    public void setDrugstoreId(Long drugstoreId) {
        this.drugstoreId = drugstoreId;
    }

    public String getDrugstoreName() {
        return drugstoreName;
    }

    public void setDrugstoreName(String drugstoreName) {
        this.drugstoreName = drugstoreName == null ? null : drugstoreName.trim();
    }

    public String getRemarks() {
        return remarks;
    }

    public void setRemarks(String remarks) {
        this.remarks = remarks == null ? null : remarks.trim();
    }

    public Float getScore() {
        return score;
    }

    public void setScore(Float score) {
        this.score = score;
    }

    public Integer getIsBuy() {
        return isBuy;
    }

    public void setIsBuy(Integer isBuy) {
        this.isBuy = isBuy;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public Date getUpdateDate() {
        return updateDate;
    }

    public void setUpdateDate(Date updateDate) {
        this.updateDate = updateDate;
    }

    public Integer getFlag() {
        return flag;
    }

    public void setFlag(Integer flag) {
        this.flag = flag;
    }

    @Override
    public String toString() {
        return ToStringBuilder.reflectionToString(this, ToStringStyle.MULTI_LINE_STYLE);
    }
}